package com.ruoyi.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户(user)对象 user
 * 
 * @author fly
 * @date 2024-09-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id(主键) */
    private Integer id;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 头像url */
    @Excel(name = "头像url")
    private String avatar;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date regTime;

    /** 是否删除 */
    private Long deleted;
}
